package visitor;

import hypeerweb.Node;

public class BroadcastShiftNeighbors extends BroadcastVisitor {

	@Override
	protected void operation(Node node, Parameters parameters) {
		if(((String)parameters.get("shift")).equals("right")) {
			node.shiftNeighborsRight();
		}
		else if(((String)parameters.get("shift")).equals("left")) {
			node.shiftNeighborsLeft();
		}
	}
}
